package com.shujia.java.day8.demo6;

//接口 用来写方法 降低耦合性
public abstract class Animals implements AnimalsFunaction{
    private String name;//姓名
    private int age;//年龄
    private String color;
    public Animals() {
    }
    public Animals(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getColor() {
        return color;
    }
    public void setColor(String color) {
        this.color = color;
    }
}
